package com.example.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot.entity.Grade;
import org.apache.ibatis.annotations.Select;

public interface GradeMapper extends BaseMapper<Grade> {
    @Select("select * from `grade` where enrollid = #{id} order by id desc")
    Grade getByEnrollId(Integer id);
}
